//package com.lu.stack.nacos.feign.fallback;
//
//import com.lu.stack.nacos.feign.FeignArticleService;
//import feign.hystrix.FallbackFactory;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//
///**
// * @author zhanglu
// * @project lu-cloud-stack
// * @description
// * @date 2023/2/1 23:35
// */
//@Slf4j
//@Component
//public class FeignArticleServiceFallbackFactory implements FallbackFactory<FeignArticleService> {
//
//    @Override
//    public FeignArticleService create(Throwable throwable) {
//        log.error(throwable.getMessage());
//        return new FeignArticleService() {
//            @Override
//            public Object t2() {
//                return -2;
//            }
//        };
//    }
//}
